﻿using STF.Blog.Common;
using STF.Blog.Dtos;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace STF.Blog.IService
{
    public interface IAdminsService
    {
        public Task<int> AddUsersAsync(string account, string pwd, string nickname, DateTime birthday, Gender gender, 
                                        string photo, string tel,string email,string qqnumber,string address,int rolesId);
        public Task<int> UpdateUsersAsync(int id, string pwd, string nickname, DateTime birthday, Gender gender,
                                        string photo, string tel, string email, string qqnumber, string address, int rolesId);
        public Task<int> PutTrashAsync(int id);
        public Task<int> RestoreAsync(int id);
        public Task<int> DeleteUsersAsync(int id);
        public Task<List<AdminDto>> GetAllUsersAsync(int deleteId = 1);
        public Task<List<AdminDto>> GetByNameAsync(string nickname, int deleteId = 1);
        public Task<AdminDto> GetByIdAsync(int id);

        public Task<AdminDto> LoginAsync(string email, string pwd);
    }
}
